package com.example.myretrofit2.presenter;

import android.content.Context;
import android.widget.Toast;

import rx.Subscriber;

public abstract class MySubscriber<T> extends Subscriber<T> {
    Context context;

    public MySubscriber(Context context) {
        this.context = context;
    }

    @Override
    public void onCompleted() {
        Toast.makeText(context,"加载完成",Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onError(Throwable e) {
        System.out.println(e);
    }
}
